package charpter14.lynx;

import java.util.Arrays;
import java.util.List;

public class Four {
	public static void main(String[] args) {
		List<Shape> shapeList = Arrays.asList(new Circle(), new Square(),
				new Triangle(), new Rhomboid());
		for (Shape shape : shapeList) {
			if (shape instanceof Rhomboid){
				((Rhomboid)shape).draw();
			}else{
				shape.draw();
			}
		}

	}
}
